<template>
  <div class="left-panel">
    <Panel>
      <template v-slot:header-slot>
        {{$store.getters.getLeftPanelTitle}}
      </template>
      <template v-slot:body-slot>
        <transition name="fade">
        <router-view></router-view>
        </transition>
      </template>
      <template v-slot:footer-slot>
        <BtnGroup></BtnGroup>
      </template>
    </Panel>
  </div>
</template>

<script>
import Panel from '../common/panel'
import History from './history'
import Friend from './friend'
import BtnGroup from './btn-group'
export default {
  data () {
    return {
    }
  },
  components: {
    Panel,
    History,
    BtnGroup,
    Friend
  }
}
</script>

<style lang="scss">
.left-panel{
  width: 300px;
  height: 100%;
  // float: left;
}
.fade-enter-active, .fade-leave-active{
  transition: all .3s;
}
.fade-enter, .fade-leave-to{
  opacity: 0;
}
.fade-enter-to, .fade-leave{
  opacity: 1;
  transition-delay: .3s;
}
.notify-badge{
  border-radius: 50%;
  color: white;
  background: red;
  line-height: 16px;
  font-size: 16px;
  min-width: 16px;
  text-align: center;
  float: right;
  transform: translateX(8px) translateY(-58px)
}
</style>
